package com.linkgie.galaxyframework.metadata.structure;

import javax.validation.constraints.NotBlank;

import com.linkgie.galaxyframework.metadata.DataEntity;
import com.linkgie.galaxyframework.metadata.DataField;
import com.linkgie.galaxyframework.metadata.DataInterface;

@DataInterface
@DataEntity
public class ContentTypeMetadata {
	
	@NotBlank
	@DataField(name = "表达式", order = 0)
	private String expression;
	
	@DataField(name = "聚合关系", order = 140)
	private AggregateMetadata[] aggregates;
	
	@DataField(name = "引用关系", order = 160)
	private ReferenceMetadata reference;
	
	@DataField(name = "组合关系", order = 180)
	private CompositeMetadata composite;
	

	public String getExpression() {
		return expression;
	}

	public AggregateMetadata[] getAggregates() {
		return aggregates;
	}

	public void setExpression(String expression) {
		this.expression = expression;
	}

	public void setAggregates(AggregateMetadata[] aggregates) {
		this.aggregates = aggregates;
	}

	public ReferenceMetadata getReference() {
		return reference;
	}

	public void setReference(ReferenceMetadata reference) {
		this.reference = reference;
	}

	public CompositeMetadata getComposite() {
		return composite;
	}

	public void setComposite(CompositeMetadata composite) {
		this.composite = composite;
	}
	
}
